package demoTest;

import java.util.Arrays;
import java.util.Scanner;

public class Main2{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()) {
            String[] str = in.nextLine().split(" ");

            Arrays.sort(str);
            Long total = 0l;
            for(int i = 0; i < str.length; i++) {
                total += Long.parseLong(str[i]);
            }
            System.out.println(total);

        }
    }
}